const { defineConfig } = require("@vue/cli-service");
module.exports = defineConfig({
  devServer: {
    host: '0.0.0.0',
    port: 8080,
    hot: true,
    open: false,
    proxy: {
      '/api': {
        target: 'http://localhost:3000',
        pathRewrite: {'^/api' : ''},
        ws: true,
        changeOrigin: true
      },
      // '/foo': {
      //   target: '<other_url>'
      // }
    }
  },
  transpileDependencies: true,
});
